using TEngine;

namespace GameLogic
{
    public partial class HttpManager
    {
        /// <summary>
        /// 默认业务API域名
        /// </summary>
        public const string PUB_API = "https://pubapi.nbgame.cn/";
        /// <summary>
        /// 支付相关API域名
        /// </summary>
        public const string PAY_API = "https://pubapi.nbgame.cn/";
        /// <summary>
        /// oss资源域名
        /// </summary>
        public const string OSS_API = "https://oss.nbgame.cn";


        public class API
        {
            /** 返回socket连接域名地址列表 */
            public static readonly string SOCKET_LIST = $"{OSS_API}/config/client/socketList.json";
            
            /** 用于判定房间层按钮是否需要显示 */
            public static readonly string GET_LOBBY_BTNS_INFO = $"{PUB_API}?m=CoinsButton&d=Client&a=index&game_id={{0}}";

            /** 获取房间列表 */
            public static readonly string GET_ROOM_CONF_BY_TAG_ID = $"{PUB_API}?d=Client&m=AreaPage&a=getRoomList&tag_id={{0}}";


        }
    }
}
